#pragma once
#include <rpcFw\CodecInf.h>
#include<rpcFw\VarCodec.h>

class RPCFW_API DJsonCodec
{
public:
	void decodeData(PacketStruct &recvPacket, CONNID dwConnID, const BYTE* pData, int iLength);
	void encodeData(PacketStruct &recvPacket, CONNID dwConnID, const BYTE* pData, int iLength);

private:
	void parsePacket(const char *pStr, Variant &varObject);

private:
	DVarCodec m_VarCodec;
};